var ajax = require('../../utils/ajax.js');
var common = require('../../utils/common.js');
var app = getApp();

Page({
	data: {
		dataLoaded: false,
	},

	onLoad() {
		var _self = this;

		common.initApp({
			loginSuc() {
				_self._getWaiterList();
			}
		});
	},

	_jump(evt){
		common.jump(evt);
	},

	_getWaiterList() {
		var _self = this;

		ajax.P('/openapi/CTechnician/technicianPage', {}, function(res) {
			var data = res.result;

			_self.setData({
				dataLoaded: true,
				winHei: app.getWinHei(),
				list: data
			});
		});
	},
});